package com.genghis.rapidcrm.kernel;

import org.springframework.stereotype.Component;

/**
 * @author xulixin
 */
@Component
public class UsersPrivilegesModel {

    public static boolean isPermitted(String name, String editView) {
        return true;
    }

    public static UsersPrivilegesModel getCurrentUserPrivilegesModel() {
        return new UsersPrivilegesModel();
    }

    public UsersPrivilegesModel getInstanceById(Long userId) {
        return new UsersPrivilegesModel();
    }

    public boolean hasModulePermission(Object userId) {
        return true;
    }

    public boolean hasModuleActionPermission(Integer modelId, String action) {
        return true;
    }
}
